Contents
DBSearch

Version 0.95

TDBSearch is a class to enable Paradox like searching on any field in a TDataSource.  It seems to be reasonably fast.  I have only tested it on a maximum of 5000 records, but the speed results were good.  It curently DOES NOT support the use of indexes.  This version is FREEWARE.  By using this software you agree not to hold me responsible for any problems or damage that may result from using the software.

The password for the source is FREE and available if you send me an email either explaining how you might use DBSearch, or any suggestions as to how to improve it.

If you have any questions or comments please send them to me (Aaron Castro) at:

Compuserve: 71534,2312

What's new

Supported functions:

Create

SetDefLocateField

Locate

LocateNext

SetDataSource

GetDataSource

SetHelpFile


Create

constructor Create(ADataSource: TDataSource);

Creates a TDBSearch object and attaches it to a DataSource.


SetDefLocateField

procedure SetDefLocateField(LocateFldStr: string)

Sets the default field to search on.  Selects the item from the drop down list of available fields to search.


Locate

procedure Locate;

Displays the locate dialogbox and does the search if the user presses OK.  Upon success, moves the record pointer to the matching record,  if not an EDBSearchPatternNotFound exception is raised.


LocateNext

procedure LocateNext;

Searches for the next occurence of the search pattern.  If locate was not previously called then the locate dialogbox is displayed.  Upon success, moves the record pointer to the matching record,  if not an EDBSearchPatternNotFound exception is raised.


SetDataSource

procedure SetDataSource(DS: TDataSource);

Allows you to switch data sources.  Any previous locate information entered is lost, i.e. Default field and previous search text.


GetDataSource

function GetDataSource: TDataSource;

Returns the DataDource DBSearch is using.


SetHelpFile

procedure SetHelpFile(FileName: String);

Sets the help filename that is called from the Locate dialog box. (Default is DBSRUN.HLP)


What's new

Version 0.95

1)	The Locate and LocateNext functions have turned into procedures that raise exceptions if the pattern is not found.

2)	Bug in SetDataSource (old info not cleared) fixed.